<?
session_start();
require_once("core.php");
  
get_all_variables();  
$db = dbconnect();

$msg = htmlspecialchars(addslashes($msg));

$q = "INSERT INTO `messages` ( `text` , `source` , `dest` )
VALUES (
 '{$msg}', '{$ch}', '0'
);";
$r = mysql_query($q, $db) or die (mysql_error());

?>